<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<body class="page-header-fixed">
	<div class="form-group" style="margin: 0px;">
				<div class="row">
					<div class="col-sm-3">
						<label class="col-sm-4 control-label text-right">手机号</label>
						<div class="col-sm-8"><input type="text" class="form-control" ng-model="searchModel.mobileNo"/></div>
					</div>
					<div class="col-sm-3">
						<label class="col-sm-3 control-label text-right">邮箱</label>
						<div class="col-sm-9"><input type="text" class="form-control" ng-model="searchModel.email"/></div>
					</div>
					<div class="col-sm-4">
						<label class="col-sm-5 control-label text-right">用户类型</label>
						<div class="col-sm-7">
							<div class="input-group">
										<select class="form-control"  
										ng-options="k as v for (k,v) in seluserTypeArray" 
										ng-model="searchModel.userType"  >
										<option value="">请选择用户类型</option>
										</select>
							</div>
						</div>
					</div>
					<div class="col-sm-1">
						<a class="btn blue" ng-click="queryUserBase();"><i class="fa fa-search"></i>查询</a>
					</div>
				</div>
	</div>
	<hr />

	<table class="table table-striped table-bordered table-hover"
		id="table_1">
		<thead>
			<tr>
				<th>手机号码</th>
				<th>注册时间</th>
				<th>邮箱</th>
				<th>姓名</th>
				<th>用户类型</th>
				<th>是否锁定</th>
				<th>锁定时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="odd gradeX"
				ng-repeat="userBase in userBaselist  track by $index"
				on-loaded="{{$last}}" target-table="table_1">
				<td><span
					ng-bind="userBase.mobileNo"></span>
				</td>
				<td><span
					ng-bind="userBase.registTime|date:'yyyy-MM-dd HH:mm:ss'" ></span>
				</td>
				<td><span ng-bind="userBase.email"></span></td>
				<td><span ng-bind="userBase.name"></span></td>
				<td><span ng-bind="userBase.userType| getValueInStaticFilter : 'userTypeArray'"></span></td>
				<td><span ng-bind="userBase.isLocked | getValueInStaticFilter : 'userLockArray'"></span></td>
				<td><span
					ng-bind="userBase.lockedTime|date:'yyyy-MM-dd HH:mm:ss'"></span>
				</td>
				<td>
			<a class="btn" href="javascript:;" ng-if="userBase.isLocked==0" ng-click="lock(userBase.userId);" >
				锁定 </a>
			<a class="btn" href="javascript:;" ng-if="userBase.isLocked==1" ng-click="unlock(userBase.userId);" >
				解锁 </a>
					</td>
			</tr>
		</tbody>
	</table>
	
</body>
</html>